package javaBase.javaStack;

import java.util.Enumeration;
import java.util.Stack;

/**
 * Created by admin on 2017/3/1.
 */
public class TestStack {
    public static void main(String[] args) {
        Stack s = new Stack();
        s.add("1");
        s.add("2");
        s.add("3");
        System.out.println(s.empty());
        System.out.println(s.peek());
        System.out.println(s.pop());
        //System.out.println(s.push("4"));
        System.out.println(s.search("2"));
        System.out.println(s.peek());
    }
}
